package com.laoniu.controller;

import com.laoniu.enums.ServiceTypeEnum;
import com.laoniu.service.SelectService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestController {

    @Autowired
    private SelectService selectService;

    @GetMapping("test1")
    public String test1(){
        return selectService.getTestMethod(ServiceTypeEnum.ONE);
    }

    @GetMapping("test2")
    public String test2(){
        return selectService.getTestMethod(ServiceTypeEnum.TWO);
    }
}
